package com.buddy.learn.source._serializable;

import java.io.Serializable;

/**
 * @author Buddy
 * @date 2021/1/21 17:33
 */
public class Employee implements Serializable {
    public String name;
    public String address;
//    public transient int age; // transient瞬态修饰成员,不会被序列化
    public int age;

    public void addressCheck() {
        System.out.println("Address check : " + name + " ‐‐ " + address);
    }
}